﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZhonTai.Industry.Services.PLCDevice.Dto.Input
{
    public class PLCDeviceAddInput
    {
        public long Id { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        /// <remarks></remarks>
        public string DeviceName { get; set; }

        /// <summary>
        /// 制造商
        /// </summary>
        /// <remarks></remarks>
        public string Manufacturer { get; set; }

        /// <summary>
        /// PLC型号
        /// </summary>
        /// <remarks></remarks>
        [Required(ErrorMessage = "PLC型号不能为空")]
        public string Model { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        /// <remarks></remarks>
        public string SerialNumber { get; set; }

        /// <summary>
        /// 固件版本
        /// </summary>
        /// <remarks></remarks>
        public string FirmwareVersion { get; set; }

        /// <summary>
        /// 硬件版本
        /// </summary>
        /// <remarks></remarks>
        public string HardwareVersion { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}